Add olwb (one-line-with-benefits) plugin#137
Open
TGPSKI wants to merge 2 commits into
Open
Conversation
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





This adds olwb ("one line with benefits") to the plugin channel.
olwb is a one-line-input notepad inside micro: you type one line, press Enter, and it drops into a newest-first feed beneath the input with a timestamp and any active labels. Notes are organized as Liner → Session → Message with inherited labels, filtering/search, and md/json export. It has a slash-command language with a live in-editor command menu and Tab-cycling completion, and stores everything as file-per-liner JSON with atomic writes under
$XDG_DATA_HOME/olwb.Following the "Adding your own plugin" guide:
plugins/olwb.jsonwith the version zip pointed at the plugins release:https://github.com/micro-editor/plugin-channel/releases/download/plugins/olwb-1.0.0.zip(requires micro >= 2.0.0)channel.jsonlinks toplugins/olwb.jsonin this repositoryLICENSEin the repo andLicensefield in the JSON)Pure Lua with no external dependencies (one vendored MIT file, rxi/json.lua). The plugin registers its own help (
> help olwb), syntax file, and an optional colorscheme; all keybinds are overridable and its buffers are scratch panes underolwb://paths. Screenshots are in the comment below.